#include<bits/stdc++.h>
#define ONLINE_JUDGE
#define ll long long
#define ull unsigned long long
using namespace std;

const int N = 1e6 + 10, INF = 0x3f3f3f3f;

int n;
map<int, int> s;

void solve()
{
    s.clear();
    cin >> n;
    for (int i = 1;i <= n;i++) {
        int x;cin >> x;
        s[x]++;
    }
    if (s.size() == 1) {
        int num = s.begin()->first;
        if (num == n - 1 || num <= n / 2) cout << "Other\n";
        else cout << "Lie\n";
    } else if (s.size() == 2) {
        auto p = s.begin();
        pair<int, int> t1 = (*p);p++;
        pair<int, int> t2 = (*p);
        if (t1 < t2) swap(t1, t2);
        if (abs(t1.first - t2.first) == 1 && t2.second == t1.first) cout << "Other\n";
        else cout << "Lie\n";

    } else cout << "Lie\n";
}

signed main()
{
    // ios::sync_with_stdio(0);
    // cin.tie(0);cout.tie(0);
#ifndef ONLINE_JUDGE
    std::istringstream in(R"()");
    std::cin.rdbuf(in.rdbuf());
#endif
    int T = 1;
    cin >> T;
    for (int i = 1;i <= T;i++) {
        solve();
    }
}